{{define "layout"}}
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>{{.Subject}}</title>
    <style>
      body {
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        line-height: 1.6;
        color: #333;
        margin: 0;
        padding: 0;
        background-color: #f4f4f4;
      }
      .email-container {
        max-width: 600px;
        margin: 0 auto;
        background-color: #ffffff;
      }
      .email-header {
        background: linear-gradient(135deg, #444 0%, #333 100%);
        color: white;
        padding: 10px 20px;
        text-align: center;
      }
      .email-body {
        padding: 30px;
      }
      .email-footer {
        background-color: #f8f9fa;
        padding: 20px;
        text-align: center;
        font-size: 14px;
        color: #6c757d;
      }
    </style>
  </head>
  <body>
    <div class="email-container">
      <div class="email-header">
        <h1>{{.Title}}</h1>
      </div>

      <div class="email-body">{{template "content" .}}</div>

      <div class="email-footer">
        <p>&copy; {{.CurrentYear}} {{.Title}}</p>
      </div>
    </div>
  </body>
</html>
{{end}}
